import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 查询销售任务目标
export const getSalesVolumeGoalList = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/querySalesTask/getSalesVolumeGoalList`, { params } )
// 新增/更新销售顾问月销售任务
export const addConstantMonthSalesTask = params => axios.post(`${SERVER.DMSCLOUD_SYSBASEDATA}/bastDataParams/consultantSalesTask/addConstantMonthSalesTask`, params )
// 前端-设置销售顾问-销售任务目标
export const getConsultantSalesTaskDetail = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/bastDataParams/consultantSalesTask/getConsultantSalesTaskDetail`, { params } )
// 查询销售顾问-销售任务目标
export const getConsultantSalesTaskList = params => axios.get(`${SERVER.DMSCLOUD_SYSBASEDATA}/bastDataParams/consultantSalesTask/getConsultantSalesTaskList`, { params } )
// 获取所有销售部门
export const getSaleOrg = params => axios.get(`${SERVER.DMSCLOUD_BASEDATA}/org/getSaleOrg`, { params } )
